package com.qidian.mes.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qidian.mes.easyexcel.LedgerStatusConverter;

import java.util.Date;

/**
 * @Author 任超
 * Time 2024/10/17 13:33
 */
@HeadRowHeight(25)
@ContentRowHeight(20)
@ColumnWidth(30)
public class Ledger {

    @ExcelProperty(value = "台账编号",index = 0)
    private Long machineId;
    @ExcelProperty(value = "台账编码",index = 1)
    private String machineCode;
    @ExcelProperty(value = "台账名称",index = 2)
    private String machineName;
    @ExcelProperty(value = "台账品牌",index = 3)
    private String machineBrand;
    @ExcelProperty(value = "台账规格",index = 4)
    private String machineSpec;
    @ExcelProperty(value = "台账车间",index = 5)
    private Long workShopId;
    @ExcelProperty(value = "台账状态",index = 6 ,converter = LedgerStatusConverter.class)
    private int machineStatus;
    @ExcelProperty(value = "台账备注",index = 7)
    private String machineNotes;
    @ExcelIgnore
    private int machineParent;
    @ExcelIgnore
    private Long machineParentId;
    @ExcelProperty(value = "创建时间",index = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ExcelProperty(value = "修改时间",index = 9)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    private WorkShop workshop;

    public WorkShop getWorkshop() {
        return workshop;
    }

    public void setWorkshop(WorkShop workshop) {
        this.workshop = workshop;
    }

    public Long getMachineId() {
        return machineId;
    }

    public void setMachineId(Long machineId) {
        this.machineId = machineId;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getMachineBrand() {
        return machineBrand;
    }

    public void setMachineBrand(String machineBrand) {
        this.machineBrand = machineBrand;
    }

    public String getMachineSpec() {
        return machineSpec;
    }

    public void setMachineSpec(String machineSpec) {
        this.machineSpec = machineSpec;
    }

    public Long getWorkShopId() {
        return workShopId;
    }

    public void setWorkShopId(Long workShopId) {
        this.workShopId = workShopId;
    }

    public int getMachineStatus() {
        return machineStatus;
    }

    public void setMachineStatus(int machineStatus) {
        this.machineStatus = machineStatus;
    }

    public String getMachineNotes() {
        return machineNotes;
    }

    public void setMachineNotes(String machineNotes) {
        this.machineNotes = machineNotes;
    }

    public int getMachineParent() {
        return machineParent;
    }

    public void setMachineParent(int machineParent) {
        this.machineParent = machineParent;
    }

    public Long getMachineParentId() {
        return machineParentId;
    }

    public void setMachineParentId(Long machineParentId) {
        this.machineParentId = machineParentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }


}
